CC = arm-hisiv100nptl-linux-gcc
#CC = arm-hismall-linux-gcc
#CC = arm-none-linux-gnueabi-gcc
CFLAGS = -Wall -g -O2

#ifeq ($(CC),gcc)
#	LIBS = libudt_pc.a
#else
#	LIBS = libudt_his.a
#endif

#LIBS += -lpthread -lstdc++ -lm

#LIBS = -L../../UDT4/src/ -ludt -lpthread -lstdc++ -lm
#LIBS = ../../UDT4/src/libudt.a -lpthread -lstdc++ -lm
#LIBS = /home/lzhong/work/klw-3518c/ipc_hi3518c/emrock/libs/udt_klw/arm_install/libudt.a 
#LIBS = ../../udt_20130711/arm_install/libudt.a 
LIBS = ../../udt_test/arm_install/libudt.a 
LIBS += -lpthread -lstdc++ -lm

SRCS := $(wildcard *.c)
OBJS := $(SRCS:%.c=%.o)

all: udtserver

udtserver: $(OBJS)
	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)

clean:
	rm -rf $(OBJS) udtserver
